<?php

use think\Route;

$afterBehavior = [
    '\app\backstage\behavior\ApiAuth',
    '\app\backstage\behavior\ApiPermission',
    '\app\backstage\behavior\AdminLog'
];

$before_behavior = '\app\backstage\behavior\Options';


Route::group('backstage', function () use ($afterBehavior, $before_behavior) {
    //一些带有特殊参数的路由写到这里
    Route::rule([
        'Login/Index'  => [
            'backstage/Login/index',
            ['method' => 'post']
        ],
        'Order/listDownload' => [
            'backstage/Order/listDownload',
            ['method' => 'get']
        ],
        'AbnormalRecord/listDownload' => [
            'backstage/AbnormalRecord/listDownload',
            ['method' => 'get']
        ],
        'ClientUser/listDownload' => [
            'backstage/ClientUser/listDownload',
            ['method' => 'get']
        ],
        'listDownload' => [
            'backstage/Task/listDownload',
            ['method' => 'get']
        ],
        'Order/detailDownload' => [
            'backstage/Order/detailDownload',
            ['method' => 'get']
        ],
        'Order/totalDetail' => [
            'backstage/Order/totalDetail',
            ['method' => 'get']
        ],
        'Order/multipleDelivery' => [
            'backstage/Order/multipleDelivery',
            ['method' => 'post']
        ],
        'Area/upload'  => [
            'backstage/Area/upload',
            ['method' => 'post']
        ],
        'Ueditor/upload'  => [
            'backstage/Ueditor/upload',
            ['method' => ['get','post']]
        ],
        'Crontab/sendAllLog' => [
            'backstage/Crontab/sendAllLog',
            ['method' => 'get']
        ],
        'Crontab/addStatistic' => [
            'backstage/Crontab/addStatistic',
            ['method' => 'get']
        ],
        'Crontab/changeOrder' => [
            'backstage/Crontab/changeOrder',
            ['method' => 'get']
        ],
        'ClientUser/backageAllot' => [
            'backstage/ClientUser/backageAllot',
            ['method' => 'get']
        ],
        'Crontab/settleCrontab' => [
            'backstage/Crontab/settleCrontab',
            ['method' => 'get']
        ],
        'Crontab/test' => [
            'backstage/Crontab/test',
            ['method' => 'get']
        ],
        'Crontab/updatePass' => [
            'backstage/Crontab/updatePass',
            ['method' => 'get']
        ],
        'Crontab/setScorderStatus' => [
            'backstage/Crontab/setScorderStatus',
            ['method' => 'get']
        ],
        'Crontab/changeScOrder' => [
            'backstage/Crontab/changeScOrder',
            ['method' => 'get']
        ],
         'Crontab/setShoporderStatus' => [
            'backstage/Crontab/setShoporderStatus',
            ['method' => 'get']
        ],
        'Crontab/setReachorderStatus' => [
            'backstage/Crontab/setReachorderStatus',
            ['method' => 'get']
        ],
        'Crontab/agentsSettle' => [
            'backstage/Crontab/agentsSettle',
            ['method' => 'get']
        ],
        'Crontab/psubscribeOrder' => [
            'backstage/Crontab/psubscribeOrder',
            ['method' => 'get']
        ],
        'Crontab/companySettle' => [
            'backstage/Crontab/companySettle',
            ['method' => 'get']
        ],
        'Crontab/updateOrderProductCount' => [
            'backstage/Crontab/updateOrderProductCount',
            ['method' => 'get']
        ],
        'Crontab/repairOrderPrizeNumSettle' => [
            'backstage/Crontab/repairOrderPrizeNumSettle',
            ['method' => 'get']
        ],
        'Crontab/repairCoupon' => [
            'backstage/Crontab/repairCoupon',
            ['method' => 'get']
        ],
        'Crontab/addAgentBill' => [
            'backstage/Crontab/addAgentBill',
            ['method' => 'get']
        ],
        'Crontab/allot' => [
            'backstage/Crontab/allot',
            ['method' => 'get']
        ],
        'Crontab/setPayStatus' => [
            'backstage/Crontab/setPayStatus',
            ['method' => 'get']
        ],
        'Crontab/getusermoney' => [
            'backstage/Crontab/getusermoney',
            ['method' => 'get']
        ],
        'Crontab/setusertuike' => [
            'backstage/Crontab/setusertuike',
            ['method' => 'get']
        ],
        'Crontab/settleAward' => [
            'backstage/Crontab/settleAward',
            ['method' => 'get']
        ],
        'Index/upload' => [
            'backstage/Index/upload',
            [
                'method'         => 'post',
                'after_behavior' => [
                    '\app\backstage\behavior\ApiAuth',
                    '\app\backstage\behavior\AdminLog'
                ]
            ]
        ],
        'Index/Qrcode' => [
            'backstage/Index/Qrcode',
            [
                'method'         => 'post'
            ]
        ],
        'Index/AgentQrcode' => [
            'backstage/Index/AgentQrcode',
            [
                'method'         => 'post'
            ]
        ],
        'Login/logout' => [
            'backstage/Login/logout',
            [
                'method'         => 'get',
                'after_behavior' => [
                    '\app\backstage\behavior\ApiAuth',
                    '\app\backstage\behavior\AdminLog'
                ]
            ]
        ]
    ] ,'', '*', ['before_behavior' => $before_behavior]);
    //大部分控制器的路由都以分组的形式写到这里
    Route::group('Menu', [
        'index'        => [
            'backstage/Menu/index',
            ['method' => 'get']
        ],
        'changeStatus' => [
            'backstage/Menu/changeStatus',
            ['method' => 'get']
        ],
        'add'          => [
            'backstage/Menu/add',
            ['method' => 'post']
        ],
        'edit'         => [
            'backstage/Menu/edit',
            ['method' => 'post']
        ],
        'del'          => [
            'backstage/Menu/del',
            ['method' => 'get']
        ]
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);
    Route::group('User', [
        'index'        => [
            'backstage/User/index',
            ['method' => 'get']
        ],
        'getUsers'     => [
            'backstage/User/getUsers',
            ['method' => 'get']
        ],
        'changeStatus' => [
            'backstage/User/changeStatus',
            ['method' => 'get']
        ],
        'add'          => [
            'backstage/User/add',
            ['method' => 'post']
        ],
        'own'          => [
            'backstage/User/own',
            ['method' => 'post']
        ],
        'edit'         => [
            'backstage/User/edit',
            ['method' => 'post']
        ],
        'del'          => [
            'backstage/User/del',
            ['method' => 'get']
        ],
        'setStatus' => [
            'backstage/User/setStatus',
            ['method' => 'post']
        ],
        'getRecharge' => [
            'backstage/User/getRecharge',
            ['method' => 'post']
        ],
         'getParent' => [
            'backstage/User/getParent',
            ['method' => 'post']
        ],
        'setrebate' => [
            'backstage/User/setrebate',
            ['method' => 'post']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);
    Route::group('Auth', [
        'index'        => [
            'backstage/Auth/index',
            ['method' => 'get']
        ],
        'changeStatus' => [
            'backstage/Auth/changeStatus',
            ['method' => 'get']
        ],
        'add'          => [
            'backstage/Auth/add',
            ['method' => 'post']
        ],
        'delMember'    => [
            'backstage/Auth/delMember',
            ['method' => 'get']
        ],
        'edit'         => [
            'backstage/Auth/edit',
            ['method' => 'post']
        ],
        'del'          => [
            'backstage/Auth/del',
            ['method' => 'get']
        ],
        'getGroups'    => [
            'backstage/Auth/getGroups',
            ['method' => 'get']
        ],
        'getRuleList'  => [
            'backstage/Auth/getRuleList',
            ['method' => 'get']
        ]
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);
    Route::group('App', [
        'index'            => [
            'backstage/App/index',
            ['method' => 'get']
        ],
        'refreshAppSecret' => [
            'backstage/App/refreshAppSecret',
            ['method' => 'get']
        ],
        'changeStatus'     => [
            'backstage/App/changeStatus',
            ['method' => 'get']
        ],
        'add'              => [
            'backstage/App/add',
            ['method' => 'post']
        ],
        'getAppInfo'       => [
            'backstage/App/getAppInfo',
            ['method' => 'get']
        ],
        'edit'             => [
            'backstage/App/edit',
            ['method' => 'post']
        ],
        'del'              => [
            'backstage/App/del',
            ['method' => 'get']
        ]
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);
    Route::group('InterfaceList', [
        'index'        => [
            'backstage/InterfaceList/index',
            ['method' => 'get']
        ],
        'changeStatus' => [
            'backstage/InterfaceList/changeStatus',
            ['method' => 'get']
        ],
        'add'          => [
            'backstage/InterfaceList/add',
            ['method' => 'post']
        ],
        'refresh'      => [
            'backstage/InterfaceList/refresh',
            ['method' => 'get']
        ],
        'edit'         => [
            'backstage/InterfaceList/edit',
            ['method' => 'post']
        ],
        'del'          => [
            'backstage/InterfaceList/del',
            ['method' => 'get']
        ],
        'getHash'      => [
            'backstage/InterfaceList/getHash',
            ['method' => 'get']
        ]
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);
    Route::group('Fields', [
        'index'    => [
            'backstage/Fields/index',
            ['method' => 'get']
        ],
        'request'  => [
            'backstage/Fields/request',
            ['method' => 'get']
        ],
        'add'      => [
            'backstage/Fields/add',
            ['method' => 'post']
        ],
        'response' => [
            'backstage/Fields/response',
            ['method' => 'get']
        ],
        'edit'     => [
            'backstage/Fields/edit',
            ['method' => 'post']
        ],
        'del'      => [
            'backstage/Fields/del',
            ['method' => 'get']
        ],
        'upload'   => [
            'backstage/Fields/upload',
            ['method' => 'post']
        ]
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);
    Route::group('InterfaceGroup', [
        'index'        => [
            'backstage/InterfaceGroup/index',
            ['method' => 'get']
        ],
        'getAll'       => [
            'backstage/InterfaceGroup/getAll',
            ['method' => 'get']
        ],
        'add'          => [
            'backstage/InterfaceGroup/add',
            ['method' => 'post']
        ],
        'changeStatus' => [
            'backstage/InterfaceGroup/changeStatus',
            ['method' => 'get']
        ],
        'edit'         => [
            'backstage/InterfaceGroup/edit',
            ['method' => 'post']
        ],
        'del'          => [
            'backstage/InterfaceGroup/del',
            ['method' => 'get']
        ]
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);
    Route::group('AppGroup', [
        'index'        => [
            'backstage/AppGroup/index',
            ['method' => 'get']
        ],
        'getAll'       => [
            'backstage/AppGroup/getAll',
            ['method' => 'get']
        ],
        'add'          => [
            'backstage/AppGroup/add',
            ['method' => 'post']
        ],
        'changeStatus' => [
            'backstage/AppGroup/changeStatus',
            ['method' => 'get']
        ],
        'edit'         => [
            'backstage/AppGroup/edit',
            ['method' => 'post']
        ],
        'del'          => [
            'backstage/AppGroup/del',
            ['method' => 'get']
        ]
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);
    Route::group('Log', [
        'index' => [
            'backstage/Log/index',
            ['method' => 'get']
        ],
        'del'   => [
            'backstage/Log/del',
            ['method' => 'get']
        ]
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('ProductClass', [
        'index' => [
            'backstage/ProductClass/index',
            ['method' => 'get']
        ],
        'changeClass' => [
            'backstage/ProductClass/changeClass',
            ['method' => 'post']
        ],
        'updateStatus' => [
            'backstage/ProductClass/updateStatus',
            ['method' => 'get']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

     Route::group('MasterApply', [
         'getMasterApplyList' => [
             'backstage/MasterApply/getMasterApplyList',
             ['method' => 'post']
         ],
        'edit' => [
            'backstage/MasterApply/edit',
            ['method' => 'post']
        ],
          'editAuditStatus' => [
            'backstage/MasterApply/editAuditStatus',
            ['method' => 'post']
        ],
         'getMasterApplyDetail' => [
            'backstage/MasterApply/getMasterApplyDetail',
            ['method' => 'post']
        ],
         'delMasterApply' => [
            'backstage/MasterApply/delMasterApply',
            ['method' => 'post']
        ],
     ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('ClientUser', [
        'index' => [
            'backstage/ClientUser/index',
            ['method' => 'get']
        ],
        'setStatus' => [
            'backstage/ClientUser/setStatus',
            ['method' => 'post']
        ],
        'add' => [
            'backstage/ClientUser/add',
            ['method' => 'post']
        ],
        'edit' => [
            'backstage/ClientUser/edit',
            ['method' => 'post']
        ],
        'updateNewKm' => [
            'backstage/ClientUser/updateNewKm',
            ['method' => 'post']
        ],
        //daoUser
        'daoUser' => [
            'backstage/ClientUser/daoUser',
            ['method' => 'post']
        ],
        'awardList' => [
            'backstage/ClientUser/awardList',
            ['method' => 'get']
        ],
        'moneyLog' => [
            'backstage/ClientUser/moneyLog',
            ['method' => 'get']
        ],
        'protocol' => [
            'backstage/ClientUser/protocol',
            ['method' => 'get']
        ],
        'editProtocol' => [
            'backstage/ClientUser/editProtocol',
            ['method' => 'post']
        ],
        'privacy' => [
            'backstage/ClientUser/privacy',
            ['method' => 'get']
        ],
        'editPrivacy' => [
            'backstage/ClientUser/editPrivacy',
            ['method' => 'post']
        ],
        'editLevel' => [
            'backstage/ClientUser/editLevel',
            ['method' => 'post']
        ],
        'userSearch' => [
            'backstage/ClientUser/userSearch',
            ['method' => 'get']
        ],
        'allot' => [
            'backstage/ClientUser/allot',
            ['method' => 'post']
        ],
        'cancelAllot' => [
            'backstage/ClientUser/cancelAllot',
            ['method' => 'post']
        ],
        'allotList' => [
            'backstage/ClientUser/allotList',
            ['method' => 'get']
        ],
        'setCheck' => [
            'backstage/ClientUser/setCheck',
            ['method' => 'post']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('Order', [
        'index' => [
            'backstage/Order/index',
            ['method' => 'get']
        ],
        'setDelivery' => [
            'backstage/Order/setDelivery',
            ['method' => 'post']
        ],
        'detail' => [
            'backstage/Order/detail',
            ['method' => 'get']
        ]
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('Recharge', [
        'getlist' => [
            'backstage/Recharge/getlist',
            ['method' => 'post']
        ]
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('Area', [
        'areaList' => [
            'backstage/Area/areaList',
            ['method' => 'get']
        ]
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);
    Route::group('IntegralPaymentLog', [
        'logList' => [
            'backstage/IntegralPaymentLog/logList',
            ['method' => 'get']
        ]
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('Product', [
        'index' => [
            'backstage/Product/index',
            ['method' => 'post']
        ],
        'detail' => [
            'backstage/Product/detail',
            ['method' => 'post']
        ],
        'addOrPutShelves' => [
            'backstage/Product/saveOrPutShelves',
            ['method' => 'post']
        ],
        'delSku' => [
            'backstage/Product/delSku',
            ['method' => 'post']
        ],
         'delProduct' => [
            'backstage/Product/delProduct',
            ['method' => 'post']
        ],
        'setStatus' => [
            'backstage/Product/setStatus',
            ['method' => 'post']
        ],
        'setRecommend' => [
            'backstage/Product/setRecommend',
            ['method' => 'post']
        ],
        'skuList' => [
            'backstage/Product/skuList',
            ['method' => 'get']
        ]

    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('Banner', [
        'Index' => [
            'backstage/Banner/index',
            ['method' => 'post']
        ],
        'setStatus' => [
            'backstage/Banner/setStatus',
            ['method' => 'post']
        ],
         'edit' => [
            'backstage/Banner/edit',
            ['method' => 'post']
        ],
         'add' => [
            'backstage/Banner/add',
            ['method' => 'post']
        ],
         'delBanner' => [
            'backstage/Banner/delBanner',
            ['method' => 'post']
        ]
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);


     Route::group('Master', [
        'getMasterList' => [
            'backstage/Master/getMasterList',
            ['method' => 'post']
        ],
        'edit' => [
            'backstage/Master/edit',
            ['method' => 'post']
        ],
         'add' => [
            'backstage/Master/add',
            ['method' => 'post']
        ],
         'recycle' => [
            'backstage/Master/recycle',
            ['method' => 'post']
        ],
        'setRecommend' => [
            'backstage/Master/setRecommend',
            ['method' => 'post']
        ],
        'getPaymentlist' => [
            'backstage/Master/getPaymentlist',
            ['method' => 'post']
        ],
        'getIntegrallist' => [
            'backstage/Master/getIntegrallist',
            ['method' => 'post']
        ],
        'getAuditList' => [
            'backstage/Master/getAuditList',
            ['method' => 'post']
        ],
        'editBankInfo' => [
            'backstage/Master/editBankInfo',
            ['method' => 'post']
        ],
        'editBankAudit' => [
            'backstage/Master/editBankAudit',
            ['method' => 'post']
        ],
        'getConfig' => [
            'backstage/Master/getConfig',
            ['method' => 'post']
        ],
        'setConfig' => [
            'backstage/Master/setConfig',
            ['method' => 'post']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

   Route::group('MasterFreshDeposit', [
        'getlist' => [
            'backstage/MasterFreshDeposit/getlist',
            ['method' => 'get']
        ],
        'setStatus' => [
            'backstage/MasterFreshDeposit/setStatus',
            ['method' => 'post']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('CommonClass', [
        'index' => [
            'backstage/CommonClass/index',
            ['method' => 'get']
        ],
        'updateStatus' => [
            'backstage/CommonClass/updateStatus',
            ['method' => 'post']
        ],
        'changeClass' => [
            'backstage/CommonClass/changeClass',
            ['method' => 'post']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('FreshVipOrder', [
        'orderList' => [
            'backstage/FreshVipOrder/orderList',
            ['method' => 'get']
        ]
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('FreshAgentAward', [
        'awardList' => [
            'backstage/FreshAgentAward/awardList',
            ['method' => 'get']
        ]
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);
    Route::group('FreshAgentMoneyLog', [
        'logList' => [
            'backstage/FreshAgentMoneyLog/logList',
            ['method' => 'get']
        ]
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);
    Route::group('Agent', [
        'addOrEit' => [
            'backstage/Agent/addOrEit',
            ['method' => 'post']
        ],
        'setBankInfo' => [
            'backstage/Agent/setBankInfo',
            ['method' => 'post']
        ],
        'index' => [
            'backstage/Agent/index',
            ['method' => 'get']
        ],
        'setStatus' => [
            'backstage/Agent/setStatus',
            ['method' => 'post']
        ],
        'addPromoter' => [
            'backstage/Agent/addPromoter',
            ['method' => 'post']
        ],
        'popuUsers' => [
            'backstage/Agent/popuUsers',
            ['method' => 'get']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('GambleProduct', [
        'addOrUpd' => [
            'backstage/GambleProduct/addOrUpd',
            ['method' => 'post']
        ],
        'productList' => [
            'backstage/GambleProduct/productList',
            ['method' => 'get']
        ],
        'setStatus' => [
            'backstage/GambleProduct/setStatus',
            ['method' => 'post']
        ],
        'index' => [
            'backstage/GambleUserRecord/index',
            ['method' => 'get']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('GambleUserRecord', [
        'index' => [
            'backstage/GambleUserRecord/index',
            ['method' => 'get']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);


    Route::group('GambleMoneyLog', [
        'logList' => [
            'backstage/GambleMoneyLog/logList',
            ['method' => 'get']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('GroupMoneyLog', [
        'logList' => [
            'backstage/GroupMoneyLog/logList',
            ['method' => 'get']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('GambleRecord', [
        'index' => [
            'backstage/GambleRecord/index',
            ['method' => 'get']
        ],
        'configList' => [
            'backstage/GambleRecord/configList',
            ['method' => 'get']
        ],
        'editConfig' => [
            'backstage/GambleRecord/editConfig',
            ['method' => 'post']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('GambleDeposit', [
        'getlist' => [
            'backstage/GambleDeposit/getlist',
            ['method' => 'get']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('GroupDeposit', [
        'getlist' => [
            'backstage/GroupDeposit/getlist',
            ['method' => 'get']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('GroupRechargeOrder', [
        'getlist' => [
            'backstage/GroupRechargeOrder/getlist',
            ['method' => 'get']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('GambleAuctionRecord', [
        'index' => [
            'backstage/GambleAuctionRecord/index',
            ['method' => 'get']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);
    Route::group('GambleAuctionOrder', [
        'index' => [
            'backstage/GambleAuctionOrder/index',
            ['method' => 'get']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('AbnormalConfig', [
        'index' => [
            'backstage/AbnormalConfig/index',
            ['method' => 'get']
        ],
        'add' => [
            'backstage/AbnormalConfig/add',
            ['method' => 'post']
        ],
        'edit' => [
            'backstage/AbnormalConfig/edit',
            ['method' => 'post']
        ],
        'del' => [
            'backstage/AbnormalConfig/del',
            ['method' => 'post']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('AbnormalRecord', [
        'index' => [
            'backstage/AbnormalRecord/index',
            ['method' => 'get']
        ],
        'add' => [
            'backstage/AbnormalRecord/add',
            ['method' => 'post']
        ],
        'dataDeal' => [
            'backstage/AbnormalRecord/dataDeal',
            ['method' => 'post']
        ],
        'cancel' => [
            'backstage/AbnormalRecord/cancel',
            ['method' => 'post']
        ],
        'edit' => [
            'backstage/AbnormalRecord/edit',
            ['method' => 'post']
        ],
        //listDownload
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('Platform', [
        'index' => [
            'backstage/Platform/index',
            ['method' => 'get']
        ],
        'add' => [
            'backstage/Platform/add',
            ['method' => 'post']
        ],
        'edit' => [
            'backstage/Platform/edit',
            ['method' => 'post']
        ],
        'del' => [
            'backstage/AbnormalConfig/del',
            ['method' => 'post']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('Task', [
        'index' => [
            'backstage/Task/index',
            ['method' => 'get']
        ],
        'add'   => [
            'backstage/Task/add',
            ['method' => 'post']
        ],
        'edit'   => [
            'backstage/Task/edit',
            ['method' => 'post']
        ],
        'setStatus'   => [
            'backstage/Task/setStatus',
            ['method' => 'post']
        ],
        'setIsUp'   => [
            'backstage/Task/setIsUp',
            ['method' => 'post']
        ],
        'operationList' => [
            'backstage/Task/operationList',
            ['method' => 'get']
        ],
        'addRecord' => [
            'backstage/Task/addRecord',
            ['method' => 'post']
        ],
        'delRecord' => [
            'backstage/Task/delRecord',
            ['method' => 'post']
        ],
        'recordList' => [
            'backstage/Task/recordList',
            ['method' => 'get']
        ],
        'operRecordList' => [
            'backstage/Task/operRecordList',
            ['method' => 'get']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('TaskType', [
        'index' => [
            'backstage/TaskType/index',
            ['method' => 'get']
        ],
        'addOrUpd'   => [
            'backstage/TaskType/addOrUpd',
            ['method' => 'post']
        ],
        'del'   => [
            'backstage/TaskType/del',
            ['method' => 'post']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('Award', [
        'logList' => [
            'backstage/Award/logList',
            ['method' => 'get']
        ],
        'awardList' => [
            'backstage/Award/awardList',
            ['method' => 'get']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('KmCode', [
        'index' => [
            'backstage/KmCode/index',
            ['method' => 'get']
        ],
        'add' => [
            'backstage/KmCode/add',
            ['method' => 'post']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

    Route::group('TaskComplete', [
        'index' => [
            'backstage/TaskComplete/index',
            ['method' => 'get']
        ],
        'add' => [
            'backstage/TaskComplete/add',
            ['method' => 'post']
        ],
        'setStatus' => [
            'backstage/TaskComplete/setStatus',
            ['method' => 'post']
        ],
    ], ['after_behavior' => $afterBehavior, 'before_behavior' => $before_behavior]);

});
